package designMode.statePattern.after;


/**
 * @author LIBOFEI
 * @ClassName Test
 * @description
 * @date 2020/6/28 17:53
 * @Version 1.0
 **/
public class Test {

    public static void main(String[] args) {

        GumballMachine machine = new GumballMachine(10);

        machine.turnCrank();

        machine.insertQuarter();

        machine.turnCrank();

        machine.ejectQuarter();

        machine.insertQuarter();

        System.out.println(machine);
    }
}
